<!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie6 oldie"> <![endif]-->
<!--[if IE 7]>    <html class="ie7 oldie"> <![endif]-->
<!--[if IE 8]>    <html class="ie8 oldie"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>嗨皮Go-绑定手机-社区会员</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="<!--{$url_prefix}-->css1/bootstrap.css" />
<link rel="stylesheet" href="<!--{$url_prefix}-->css1/bootstrap-responsive.css" />
<link rel="stylesheet" href="<!--{$url_prefix}-->css1/reset.css" />
<link rel="stylesheet" href="<!--{$url_prefix}-->css1/login.css" />
<script src="<!--{$url_prefix}-->js/jquery.js"></script>
<script src="<!--{$url_prefix}-->js/hipigouser.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript"> 
//HTML5 兼容ie所有版本
'FooterHeaderNavSectionAside'.replace(/.[a-z]+/g,function(n){document.createElement(n)});
</script>
<style type="text/css"> 
<!--
header, aside, menu,footer,article{
display:block;
}
-->
</style>

</head>
<body>
<div class="main">
    <div class="container">
        <!--login-->
        <a href="javascript:history.go(-1);" class="return left"><i class="iconfont icon iconfont_10">&#983354</i></a>
        <input placeholder="请输入你的密码" type="password" id="pwd" class="login_input"/>
        <button class="refer" id="next">下一步</button>
    </div>
    <!--footer-->
    <footer><!--powered by <a href="http://www.it008.com" target="_blank">赏金猎人</a--></footer>
</div>
<!--弹窗S-->
<div class="modalv_opu hidden" onclick="hidePop()" id="pop">
<i class="icon-remove"></i><span id="tip">该账号已被注册，请重新输入</span>
</div>
<!--弹窗E-->
<script>
var auth = {"pwd":false};
$(document).ready(function(){
    $("#pwd").blur(function(){
        var pwd = $(this).val();
        if(pwd.length==0){
            $(this).attr('class','error');
            $("#next").attr('class','refer');
            auth.pwd = false;
        }else if(!rule.pwdreg.test(pwd)||pwd.length>18 || pwd.length<6){
            showPop("请输入6-18位数字加字母！");
            $(this).attr('class','error');
            $("#next").attr('class','refer');
            auth.pwd = false;
        }else{
            $(this).attr('class','login_input');
            $("#next").attr('class','refer01');
            auth.pwd = true;
            //$(".login_input").removeAttr('readonly');
        }
    })
    
    $("#pwd").focus(function(){
        $(this).attr('class','login_input');
        $("#next").attr('class','refer');
        //$(".login_input").removeAttr('readonly');
    })
    
    $("#next").click(function(){
        var pwd = $("#pwd").val();
        if(auth.pwd == false){
            showPop("请输入6-18位数字加字母密码！");
            $("#pwd").attr('class','error');
            $("#next").attr('class','refer');
            return false;
        }
        $("#next").attr('class','refer01');
        $.ajax({    
            url:'/wapi/<!--{$bid}-->/<!--{$sid}-->/user/checkpwd',
            data:'pwd='+pwd,
            async: true,
            dataType: 'json',
            type:'post',
            success:function(data){
                if(data.status){
                    window.location.href="/wapi/<!--{$bid}-->/<!--{$sid}-->/user/bind_phone"
                }else{
                    $("#pwd").attr('class','error');
                    $("#next").attr('class','refer');
                    showPop(data.msg);
                }
           }
        })
        
    })
    
    
    
    
    
    
})


</script>
</body>
</html>
